package com.gujiayue.module.sys.pojo.copier;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.gujiayue.module.sys.pojo.SysUsrDo;
import com.gujiayue.module.sys.pojo.dto.SysUsrDto;
import com.gujiayue.module.sys.pojo.query.QuerySysUsrList;
import com.gujiayue.module.sys.pojo.query.QuerySysUsrPage;
import com.gujiayue.module.sys.pojo.vo.SysUsrVo;

@Mapper(componentModel = "spring")
public interface SysUsrCopier {
	/***初始化实例*/
	SysUsrCopier instance = Mappers.getMapper(SysUsrCopier.class);
	
	/**
	 * Do转Vo
	 * @param sysUsrDo
	 * @return
	 */
	SysUsrVo copierSysUsrDo(SysUsrDo sysUsrDo);
	
	/**
	 * Dto转Do
	 * @param sysUsrDto
	 * @return
	 */
	SysUsrDo copierSysUsrDto(SysUsrDto sysUsrDto);
	
	/**
	 * Query转Do
	 * @param querySysUsrPage
	 * @return
	 */
	SysUsrDo copierQuerySysUsrPage(QuerySysUsrPage querySysUsrPage);
	
	/**
	 * Query转Do
	 * @param querySysUsrList
	 * @return
	 */
	SysUsrDo copierQuerySysUsrList(QuerySysUsrList querySysUsrList);
}
